﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Team.TeamIServices.ProductManagement.IServices
{
    /// <summary>
    /// 产品管理
    /// </summary>
    public interface IProductMaintenanceServices
    {
        /// <summary>
        /// 查询产品维护
        /// </summary>
        /// <returns></returns>
        IQueryable<ProductMaintenance> GetProductMaintenance(string? qecode, string? bomcode, string? productcode);
        /// <summary>
        /// 新增产品维护-xzc
        /// </summary>
        /// <param name="productmaintenance"></param>
        /// <returns></returns>
        Task<int> AddProductMaintenance(ProductMaintenance productmaintenance);
        /// <summary>
        /// 更新产品维护-xzc
        /// </summary>
        /// <param name="productmaintenance"></param>
        /// <returns></returns>
        Task<int> UpdateProductMaintenance(ProductMaintenance productmaintenance);
        /// <summary>
        /// 删除产品维护-xzc
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteProductMaintenance(int id);
        /// <summary>
        /// 批量删除产品维护
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<int> DeleteAnageProductMaintenance(string Id);
    }
}
